<template>
  <div id='DiseaseStatistics' :class="['left', 'contentWidth',{'mainBig': $store.state.isCollapse ,'mainSmall': !$store.state.isCollapse }]">
    <div class="header clearfix">
      <div class="contentTopLeft left">
        <h2>病情统计</h2>
        <p>当前人数:<span class="patient-num" style="margin-left:15px;font-size:16px;">{{TotalCount}}</span></p>
      </div>
      <maintopright></maintopright>
    </div>
    <diseaseStatisticsContent></diseaseStatisticsContent>
  </div>
</template>
<script>
  import maintopright from '@/components/main/maintop/maintopRight'
  import diseaseStatisticsContent from '@/views/diseaseStatistics/diseaseStatisticsContent/diseaseStatisticsContent'
 import Bus from '@/components/common/bus' //引入公共媒介JS BUS
export default {
components:{
   maintopright,
  diseaseStatisticsContent
},
 data(){
    return{
      TotalCount: ''
    }
   },
    mounted(){
     Bus.$on('TotalCount', (e) => {
         this.TotalCount = e
          //console.log(`传来的数据是：${e}`)
       })

    }
}
</script>
<style scoped>

</style>

